package com.javasix;

public class Demo2 implements Runnable {
    @Override
    public void run() {
        //todo
        for (int i = 0; i <5 ; i++) {
            if(i==2){
                Thread.yield();
            }
            System.out.println(Thread.currentThread().getName()+","+i);
        }
    }
}
